#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<algorithm>
using namespace std;
const int N = 1e4 + 10;
int p = 131;
typedef unsigned long long ull;
ull a[N];
ull gethash(string& s)
{
    ull ret = 0;
    for (int i = 1; i <= s.size(); i++)
    {
        ret = ret * p + s[i - 1];
    }
    return ret;
}
int main()
{
    int t = 0;
    cin >> t;
    for (int i = 1; i <= t; i++)
    {
        string s;
        cin >> s;
        a[i] = gethash(s);
    }
    sort(a + 1, a + t + 1);
    int ret = 1;
    for (int i = 2; i <= t; i++)
    {
        if (a[i] != a[i - 1])
        {
            ret++;
        }
    }
    cout << ret;
    return 0;
}